<div id="titulo"><h1>Editar Idiomas</h1></div>
<form name="frm_editar" id="frm_editar" method="post" action="<?php echo $html->url(array("controller" => "idiomas", "action" => "salvando_alteracao")); ?>">
<table width="100%" cellpadding="0" cellspacing="5" border="0">
<?php foreach ($dadosIdiomas as $idiomas) { ?>
	<input type="hidden" name="data[Idioma][CD_IDIOMA]" value="<?php echo $idiomas['Idioma']['CD_IDIOMA']?>" />
	<input type="hidden" name="data[Idioma][ABREVIACAO_OLD]" value="<?php echo $idiomas['Idioma']['ABREVIACAO']?>" />

	<tr>
		<td width="10%">Nome</td>
		<td><input type="text" name="data[Idioma][NOME]" value="<?php echo $idiomas['Idioma']['NOME']?>" /></td>
		
	<tr>
		<td width="10%">Descrição</td>
		<td><input type="text" name="data[Idioma][DESCRICAO]" value="<?php echo $idiomas['Idioma']['DESCRICAO']?>" /></td>
		
	<tr>
		<td width="10%">Abreviação</td>
		<td><input type="text" name="data[Idioma][ABREVIACAO]" value="<?php echo $idiomas['Idioma']['ABREVIACAO']?>" /></td>
		
	<tr>
		<td>Status</td>
		<td><select name="data[Idioma][ATIVO]" style="width: 120px;"><option value="S" <?php if ($idiomas['Idioma']['ATIVO'] == 'S') { echo 'selected="selected"'; } ?>  >Ativo</option><option value="N" <?php if ($idiomas['Idioma']['ATIVO'] == 'N') { echo 'selected="selected"'; } ?> >Desativado</option></select></td>
	<tr>
		<td height="20" colspan="2"></td>
	
<?php } ?>
<tr>
		<td height="20" colspan="2"><input type="submit" value="Salvar" ></td>
</table>
</form>